package com.xtck.ha.fault.modules.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xtck.ha.fault.modules.pojo.entity.ModInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @ClassName: ModInfoDAO
* @Description: 数据访问接口
* @author liuyuan
* @date 2025-06-17
*/
@Mapper
@Repository
public interface ModInfoDAO extends BaseMapper<ModInfo> {
    @Select("" +
            "SELECT * FROM FAULT_SYS.MOD_INFO a WHERE 1=1   " +
            "AND a.mod_name=#{modName}; ")
    List<ModInfo> selectByModName(@Param("modName") String modName);

    @Select("" +
            "SELECT * FROM FAULT_SYS.MOD_INFO a WHERE 1=1   ;")
    List<ModInfo> selectAll();
}